package music_store.ms.service;

import music_store.ms.common.ServerResponse;
import music_store.ms.vo.CartVo;

public interface ICartService {

    ServerResponse add (Integer userId, Integer musicId, Integer count);

    ServerResponse update (Integer userId, Integer musicId, Integer count);

    ServerResponse<CartVo> deleteMusic (Integer userId, String musicIds);

    ServerResponse<CartVo> list(Integer userId);

    //整合了单选与多选的高服用方法
    ServerResponse<CartVo> selectOrUnselect(Integer userId, Integer musicId, Integer checked);
}
